package com.hunny.decorator;

/**
 * 装饰
 *
 * @author Create By Cb
 * @date 2022/05/06
 * @since 2022/5/6 14:48
 */
public class Decorator implements People {

    /**
     * 人
     */
    private People people;

    /**
     * 装饰
     *
     * @param people 人
     */
    public Decorator(People people) {
        this.people = people;
    }

    /**
     * 吃
     */
    @Override
    public void eat() {
        this.people.eat();
    }
}